<template>
	<view class="container">
		<view class="e-item-box">
			<view class="user">
				<view class="left">
					<view class="name">
						<text>李阿姨</text>
						<image @click="toEditUser" :src="$img_path('/pagesRegion/19.png')" mode="widthFix"></image>
					</view>
					<view class="text">
						女 | 30岁 | 4年经验 | 本科 | 属虎 | 狮子座
					</view>
				</view>
				<view class="right">
					<image :src="$img_path('/mall/5.png')" mode="aspectFill"></image>
				</view>
			</view>
		</view>
		<view class="title">
			<text>求职意向</text>
		</view>
		<view class="e-item-box select-box">
			<view class="job">
				<view class="label">工作情况</view>
				<view class="val" @click="$refs.popup_job.open()">
					<text>护工、护理员</text>
					<image :src="$img_path('/pagesRegion/20.png')" mode="widthFix"></image>
				</view>
			</view>
		</view>
		<view class="e-item-box select-box">
			<view class="job">
				<view class="label">住家情况</view>
				<view class="val" @click="$refs.popup_zj.open()">
					<text>住家</text>
					<image :src="$img_path('/pagesRegion/20.png')" mode="widthFix"></image>
				</view>
			</view>
		</view>
		
		
		<view class="title">
			<text>自我介绍</text>
			<image :src="$img_path('/pagesRegion/19.png')" @click="toUrl('/pagesRegion/nurseReview/editPage/self_introduction')" mode="widthFix"></image>
		</view>
		<view class="e-item-box zwjs">
			<view class="js-text">
				内容内容内容内容内容内容内容内容内容内容内容内容内
				容内容内容内容内容内容内容内容内容内容内容内容内容
				内容内容内容内容内容内容内容内容内容内容内容内容内
				容内容内容内容内容内容内容
			</view>
		</view>
		
		
		<view class="title">
			<text>擅长技能</text>
			<image :src="$img_path('/pagesRegion/19.png')" @click="toUrl('/pagesRegion/nurseReview/editPage/skill')" mode="widthFix"></image>
		</view>
		<view class="e-item-box zwjs">
			<view class="js-text">
				内容内容、内容内容、内容内容
			</view>
		</view>
		
		
		<view class="title">
			<text>认证证书</text>
			<!-- <image :src="$img_path('/pagesRegion/19.png')" mode="widthFix"></image> -->
		</view>
		<view class="e-item-box zs-upload">
			<view class="zs-con">
				<view class="i-img up-img">
					<image :src="$img_path('/pagesRegion/21.png')" mode="widthFix"></image>
				</view>
				<view class="i-img up-img">
					<image :src="$img_path('/pagesRegion/21.png')" mode="aspectFill"></image>
					<image class="del" :src="$img_path('/pagesRegion/22.png')" mode="widthFix"></image>
				</view>
			</view>
		</view>
		
		
		<view class="title" style="margin-top: 32rpx;">
			<text>个人资历</text>
		</view>
		<view class="title" style="margin-top: 40rpx;">
			<text style="font-weight: 400;">生活照</text>
		</view>
		<view class="e-item-box zs-upload" style="border: none;">
			<view class="zs-con">
				<view class="i-img up-img">
					<image :src="$img_path('/pagesRegion/21.png')" mode="widthFix"></image>
				</view>
				<view class="i-img up-img">
					<image :src="$img_path('/pagesRegion/21.png')" mode="aspectFill"></image>
					<image class="del" :src="$img_path('/pagesRegion/22.png')" mode="widthFix"></image>
				</view>
			</view>
		</view>
		
		<view class="title" style="margin-top: 40rpx;">
			<text>工作经历</text>
			<image :src="$img_path('/pagesRegion/23.png')" @click="toUrl('/pagesRegion/nurseReview/editPage/experience')" style="width: 50rpx;height: 50rpx;" mode="widthFix"></image>
		</view>
		<view class="jl-list">
			<view class="j-item" @click="toUrl('/pagesRegion/nurseReview/editPage/experience')">
				<view class="time">
					<text>·2021.06.14-2024.06.04</text>
					<image :src="$img_path('/pagesRegion/20.png')" mode="widthFix"></image>
				</view>
				<view class="text">
					内容内容内容内容内容内容内容内容内容内容内容内容内
					容内容内容内容内容内容内容内容内容内容内容内容内容
					内容内容内容内容内容内容内容内容内容内容内容内容内
					容内容内容内容内容内容内容
				</view>
			</view>
		</view>
		
		<!-- 工作情况 -->
		<uni-popup ref="popup_job" background-color="#fff" type="bottom" customClass="bgF">
			<view class="p-top">
				<view class="left" @click="close">取消</view>
				<view class="title">选择工作情况</view>
				<view class="right" @click="confirm">确定</view>
			</view>
			<view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
				<view class="gz-list">
					<view class="g-item">
						<text>护工</text>
						<image :src="$img_path('/pagesMine/14.png')" mode="widthFix"></image>
					</view>
					<view class="g-item">
						<text>护理员</text>
						<image :src="$img_path('/pagesMine/14.png')" mode="widthFix"></image>
					</view>
				</view>
			</view>
		</uni-popup>
		<!-- 住家情况 -->
		<uni-popup ref="popup_zj" background-color="#fff" type="bottom" customClass="bgF">
			<view class="p-top">
				<view class="left" @click="close">取消</view>
				<view class="title">选择住家情况</view>
				<view class="right" @click="confirm">确定</view>
			</view>
			<view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
				<picker-view class="picker-view" indicator-style="height: 50px;" :immediate-change="true" mask-style="background:rgba(0,0,0,0)" :value="pickerValue" @change="pickerChange">
					<view class="center-bg"></view>
					<picker-view-column>
						<view class="item" v-for="(item,i) in  zjList" :key="i" :style="{color:i==pickerValue[0] ? '#333333' : '#999999',fontSize:i==pickerValue[0] ? '36rpx' : '32rpx'}">
							{{item.text}}
						</view>
					</picker-view-column>
				</picker-view>
			</view>
		</uni-popup>
		
		
		<view class="bottom-btn">
			<view class="b-box">
				<button >保存</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				zjList:[
					{
						value:1,
						text:'均可'
					},{
						value:1,
						text:'住家'
					},{
						value:1,
						text:'白天全班'
					},{
						value:1,
						text:'下午白班'
					},{
						value:1,
						text:'下午白班'
					},
				],
				pickerValue:[0]
			};
		},
		methods:{
			toEditUser(){
				uni.navigateTo({
					url:'/pagesRegion/nurseReview/user'
				})
			},
			toUrl(url){
				uni.navigateTo({
					url:url
				})
			},
			
			pickerChange(val){
				console.log(val,this.pickerValue)
				this.pickerValue = val.detail.value
			},
			confirm(){
				
			},
			close(){
				
				// this.$refs.popup_sex.close()
			},
		}
	}
</script>
<style>
	page{
		background-color: #FFFFFF;
	}
	
	/deep/ .bgF{
		border-radius: 40rpx 40rpx 0 0 !important;
	}
</style>
<style lang="scss" scoped>
.container{
	.e-item-box{
		border-bottom: 2rpx solid #EEEEEE;
		padding: 0 22rpx;
		box-sizing: border-box;
		.user{
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 22rpx 0;
			.left{
				.name{
					display: flex;
					align-items: center;
					text{
						font-weight: bold;
						font-size: 36rpx;
						color: #000000;
						line-height: 50rpx;
					}
					image{
						width: 44rpx;
						height: 45rpx;
						margin-left: 20rpx;
					}
				}
				text{
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					line-height: 40rpx;
					margin-top: 10rpx;
				}
			}
			.right{
				image{
					width: 122rpx;
					height: 122rpx;
					border-radius: 50%;
				}
			}
		}
	}
	.title{
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-top: 32rpx;
		padding:0 22rpx;
		box-sizing: border-box;
		text{
			font-weight: bold;
			font-size: 36rpx;
			color: #000000;
			line-height: 50rpx;
		}
		image{
			width: 44rpx;
			height: 45rpx;
		}
	}
	
	.select-box{
		margin-top: 16rpx;
		.job{
			padding: 24rpx 0;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.label{
				width: 120rpx;
				font-weight: bold;
				font-size: 28rpx;
				color: #000000;
				line-height: 40rpx;
			}
			.val{
				display: flex;
				align-items: center;
				text{
					font-weight: 400;
					font-size: 28rpx;
					color: #000000;
					line-height: 40rpx;
				}
				image{
					width: 11rpx;
					height: 19rpx;
					margin-left: 18rpx;
				}
			}
		}
	}
	
	.zwjs{
		.js-text{
			padding: 24rpx 0 32rpx;
			font-weight: 400;
			font-size: 28rpx;
			color: #333333;
			line-height: 40rpx;
		}
	}
	
	.zs-upload{
		.zs-con{
			padding: 2rpx 0 40rpx;
			display: flex;
			flex-wrap: wrap;
			.i-img{
				width: 184rpx;
				height: 184rpx;
				image{
					width: 100%;
					height: 100%;
					border-radius: 20rpx;
				}
				margin-right: 20rpx;
				margin-top: 20rpx;
				position: relative;
				.del{
					width: 40rpx;
					height: 40rpx;
					position: absolute;
					top: 10rpx;
					right: 10rpx;
				}
			}
		}
	}
	
	.jl-list{
		padding: 0 22rpx;
		box-sizing: border-box;
		.j-item{
			margin-top: 20rpx;
			.time{
				display: flex;
				align-items: center;
				font-weight: 400;
				font-size: 32rpx;
				color: #000000;
				line-height: 44rpx;
				image{
					width: 11rpx;
					height: 19rpx;
					margin-left: 22rpx;
				}
			}
			.text{
				font-weight: 400;
				font-size: 28rpx;
				color: #333333;
				line-height: 40rpx;
				margin-top: 20rpx;
			}
		}
	}
	
}
.bottom-btn{
	width: 100%;
	height: calc(constant(safe-area-inset-bottom) + 140rpx);
	height: calc(env(safe-area-inset-bottom) + 140rpx);
	.b-box{
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		padding: 20rpx 22rpx 0;
		padding-bottom: calc(constant(safe-area-inset-bottom) + 20rpx);
		padding-bottom: calc(env(safe-area-inset-bottom) + 20rpx);
		box-sizing: border-box;
		background-color: #FFFFFF;
		button{
			width: 100%;
			height: 96rpx;
			background: linear-gradient( 135deg, #FFA233 0%, #FB4C4C 100%);
			border-radius: 80rpx;
			font-weight: bold;
			font-size: 36rpx;
			color: #FFFFFF;
			line-height: 96rpx;
		}
	}
}


	.p-top{
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		padding: 36rpx 28rpx 10rpx;
		box-sizing: border-box;
		.left{
			font-weight: bold;
			font-size: 30rpx;
			color: #333333;
			line-height: 42rpx;
		}
		.title{
			font-weight: bold;
			font-size: 36rpx;
			color: #333333;
			line-height: 50rpx;
		}
		.right{
			font-weight: bold;
			font-size: 30rpx;
			color: #E72A2A;
			line-height: 42rpx;
		}
	}
	
	.popup-content{
		padding: 0 22rpx;
		box-sizing: border-box;
		
		.gz-list{
			.g-item{
				padding: 42rpx 0;
				box-sizing: border-box;
				display: flex;
				justify-content: space-between;
				align-items: center;
				text{
					font-weight: bold;
					font-size: 32rpx;
					color: #000000;
					line-height: 44rpx;
				}
				image{
					width: 40rpx;
					height: 40rpx;
				}
			}
		}
	}
	
	.picker-view {
		width: 100%;
		height: 510rpx;
		margin-top: 20rpx;
		position: relative;
		.center-bg{
			width: 100%;
			height: 102rpx;
			background-color: #F4F4F4;
			position: absolute;
			left: 0;
			top: 50%;
			transform: translateY(-50%);
			z-index: 0;
			border-radius: 16rpx;
		}
		
		/deep/ .item {
			line-height: 102rpx;
			text-align: center;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 36rpx;
			color: #333333;
			font-style: normal;
			text-transform: none;
		}
	}
</style>
